package com.weiyuanstudio.nextstep.persistence.repository;

import com.weiyuanstudio.nextstep.persistence.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.UUID;

@Repository
@RepositoryRestResource(path = "user")
public interface UserRepository extends JpaRepository<User, UUID> {
    @Override
    List<User> findAll();
}
